package firstTry;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class MainScreen {

	private JFrame frmBluetoothClassAttendance;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainScreen window = new MainScreen();
					window.frmBluetoothClassAttendance.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MainScreen() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmBluetoothClassAttendance = new JFrame();
		frmBluetoothClassAttendance.setTitle("Bluetooth Class Attendance Report");
		frmBluetoothClassAttendance.setBounds(100, 100, 450, 386);
		frmBluetoothClassAttendance.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmBluetoothClassAttendance.getContentPane().setLayout(null);
		
		JButton btnAddStudent = new JButton("Add Student");
		btnAddStudent.setBounds(149, 29, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnAddStudent);
		
		JButton btnEditStudent = new JButton("Edit Student");
		btnEditStudent.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnEditStudent.setBounds(149, 81, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnEditStudent);
		
		JButton btnGenerateReport = new JButton("Generate Report");
		btnGenerateReport.setBounds(149, 133, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnGenerateReport);
		
		JButton btnExportAttendance = new JButton("Export Attendance");
		btnExportAttendance.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnExportAttendance.setBounds(149, 185, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnExportAttendance);
		
		JButton btnCollectAttendance = new JButton("Collect Attendance");
		btnCollectAttendance.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnCollectAttendance.setBounds(149, 237, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnCollectAttendance);
		
		JButton btnExcuseStudent = new JButton("Excuse Student");
		btnExcuseStudent.setBounds(149, 289, 177, 40);
		frmBluetoothClassAttendance.getContentPane().add(btnExcuseStudent);
	}
}
